home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / var / lib / dpkg / info / pnm2ppa.prerm < prev    next >
Text File  |  2008-06-09  |  2KB  |  63 lines

  1. #! /bin/sh
  2. # prerm script for pnm2ppa
  3. #
  4. # see: dh_installdeb(1)
  5.  
  6. set -e
  7.  
  8. # summary of how this script can be called:
  9. #        * <prerm> `remove'
  10. #        * <old-prerm> `upgrade' <new-version>
  11. #        * <new-prerm> `failed-upgrade' <old-version>
  12. #        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
  13. #        * <deconfigured's-prerm> `deconfigure' `in-favour'
  14. #          <package-being-installed> <version> `removing'
  15. #          <conflicting-package> <version>
  16. # for details, see http://www.debian.org/doc/debian-policy/ or
  17. # the debian-policy package
  18.  
  19.  
  20. case "$1" in
  21.     remove|upgrade|deconfigure)
  22. #       install-info --quiet --remove /usr/info/pnm2ppa.info.gz
  23.         ;;
  24.     failed-upgrade)
  25.         ;;
  26.     purge)
  27.     for i in /etc/magicfilter/pbm2ppa* ; do
  28.         rm -f $i
  29.     done
  30.         ;;
  31.     *)
  32.         echo "prerm called with unknown argument \`$1'" >&2
  33.         exit 1
  34.     ;;
  35. esac
  36.  
  37. # dh_installdeb will replace this with shell code automatically
  38. # generated by other debhelper scripts.
  39.  
  40. # Automatically added by dh_installdocs
  41. if [ "$1" = remove ] || [ "$1" = upgrade ] && \
  42.    which install-docs >/dev/null 2>&1; then
  43.     install-docs -r pnm2ppa-color
  44. fi
  45. # End automatically added section
  46. # Automatically added by dh_installdocs
  47. if [ "$1" = remove ] || [ "$1" = upgrade ] && \
  48.    which install-docs >/dev/null 2>&1; then
  49.     install-docs -r pnm2ppa-calibrate
  50. fi
  51. # End automatically added section
  52. # Automatically added by dh_installdocs
  53. if [ "$1" = remove ] || [ "$1" = upgrade ] && \
  54.    which install-docs >/dev/null 2>&1; then
  55.     install-docs -r pnm2ppa-ppa-networking
  56. fi
  57. # End automatically added section
  58.  
  59.  
  60. exit 0
  61.  
  62.  
  63.